var statement = avalon.define({
	$id: "statementPage",
	uid: "",
	status: 0,
	agree: function() {
		mui.ajax('/user/agreeStatement.do', {
			data: {
				uid:statement.uid
			},
			dataType: 'json',
			success: function(data) {
				mui.alert('', data.msg, function() {
					mui.openWindow({
						url: "../order/list.html"
					});
				});
			}
		});
	},
	reject: function() {
		mui.openWindow({
			url: "index.html"
		});
	}
});

mui.ready(function() {
	var uid = $("#uid").val();
	statement.uid = uid;
});